<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>会员详情</title>
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
		<script src="__PUBLIC__/static/layui/layui.js"></script>
	</head>

	<body>
		<div class="right" >
			<div class="rigtop">
				<span class="title">成员详情</span>
				<!--<span class="title">
					<input  type="text" id='condition'/>
					<button onclick="sel_content()"  id='search-button' style="font-size: 13px;"> &nbsp;查 找&nbsp; </button>
				</span>-->
			</div>
			<div class="layui-collapse" lay-accordion="" id='content'>
			  	<div class="layui-collapse" >
				  	{if $user_number>0}
				  	<div class="layui-colla-item">
				  		<h2 class="layui-colla-title">消费会员<em style="font-size: 14px;color: red;">(数量：<?php echo $consume_user?count($consume_user):0 ?>)</em></h2>
				  		<div class="layui-colla-content ">
				  			<div class="layui-collapse" lay-accordion="">
				            	{volist name="$consume_user" id="consume"}
					              <div class="layui-colla-item" style="margin-bottom: 10px;">
					                <h2 class="layui-colla-title">
					                	会员编号：{$consume['id']}&nbsp; 
					                	消费次数：{$consume['total_nums']}
					                </h2>
					                <div style="background: #f2f2f2;padding: 0 15px 0 35px;">
					                	联系电话:{$consume['mobile']?$consume['mobile'] : $consume['nickname']}；加入时间:{$consume['add_time']}
					                </div>
					              </div>
				             	{/volist}
				            </div>
		             	</div>
		            </div>
		            <div class="layui-colla-item">
				  		<h2 class="layui-colla-title">推广会员<em style="font-size: 14px;color: red;">(数量：<?php echo $promote_user?count($promote_user):0 ?>)</em></h2>
			  			<div class="layui-colla-content ">
			  			<div class="layui-collapse" lay-accordion="">
			            	{volist name="$promote_user" id="promote"}
				              <div class="layui-colla-item" style="margin-bottom: 10px;">
				                <h2 class="layui-colla-title">
				                	会员编号：{$promote['id']}&nbsp; 
				                </h2>
				                <div style="background: #f2f2f2;padding: 0 15px 0 35px;">
				                	联系电话:{$promote['mobile']?$promote['mobile'] : $promote['nickname']}；加入时间:{$promote['add_time']}
				                </div>
				              </div>
			             	{/volist}
			            </div>
			          </div>
		            </div>
	             	{/if}
	            </div>
			</div>
		</div>
			
	</body>
	
</html>
<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
<script src="__PUBLIC__/static/layui/layui.all.js"></script>
<script>
//注意：折叠面板 依赖 element 模块，否则无法进行功能性操作
layui.use('element', function(){
  var element = layui.element;
  
});

	function sel_content(){
		var content = document.body.innerHTML;
		var condition = $('#condition').val();
		var result = content.indexOf(condition);
		
	}
</script>
